package com.example.controller;

import com.example.pojo.OutputEcharts;
import com.example.pojo.OutputMater;
import com.example.pojo.Result;
import com.example.service.OutputService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/output")
public class OutputController {
    @Autowired
    private OutputService outputService;

    @GetMapping
    public Result outout_m(){
        List<OutputEcharts> outputEcharts=outputService.outout_m();
        return Result.success(outputEcharts);
    }
    @GetMapping("/get")
    public Result outout_m1(){
        List<OutputEcharts> outputEcharts=outputService.outout_m1();
        return Result.success(outputEcharts);
    }
}
